package com.retail.bbq.cola.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    PARAM_ERROR(40001, "参数错误"),
    UNAUTHORIZED(40101, "未授权"),
    FORBIDDEN(40301, "禁止访问"),
    NOT_FOUND(40401, "资源不存在"),
    REPEAT_OPTION(40501, "操作过于频繁"),
    SYSTEM_ERROR(40502, "系统繁忙，请重新操作"),
    SERVER_ERROR(50001, "服务器内部错误"),
    DATABASE_ERROR(50002, "数据操作错误"),
    GET_ACCESS_TOKEN_FAIL(50003, "获取accessToken失败"),
    POST_FAIL(50004, "获取accessToken失败"),
    STATUS_FAIL(50004, "异常订单状态"),
    SIGN_GENERATION_FAIL(50005, "签名生成失败"),
    USER_BIND_NOT_EXIST(50006, "用户关系不存在"),
    COLA_USER_NOT_EXIST(50006, "可乐用户不存在"),
    LAWSON_USER_NOT_EXIST(50007, "罗森用户不存在"),
    COLA_QUERY_ORDER_FAIL(50008, "订单查询失败"),
    COLA_GOODS_INFO_FAIL(50009, "缺乏活动商品清单"),
    ;

    private final Integer code;
    private final String message;

}
